<template>
	<Theme>
		<view class="bgw px6">
			<view class="fjb py5">
				<view class="c6">营业执照</view>
				<image :lazy-load="true" @click="preview(view.license)" class="wgi m1" :src="filter.image(view.license)" />
			</view>
			<view class="fjb py5 bt" @click="call">
				<view class="c6">联系方式</view>
				<view class="fc-primary">
					<u-icon name="phone-fill" class="mr1 fs30" />
					{{view.corp_mobile}}
				</view>
			</view>
			<view class="fjb py5 bt">
				<view class="c6 tsn">{{view.type==1?'店铺':'公司'}}地址</view>
				<view class="pl4">{{view.address}}</view>
			</view>
			<view v-if="view.certs.length > 0" class="fjb py5 bt">
				<view class="c6 tsn">资质</view>
				<view class="pl4">
					<image :lazy-load="true" v-for="(item,i) in view.certs" :key="i" @click="preview(view.certs.map(r=>r.thumb), i)" class="w14 h14 pr2" :src="filter.image(item.thumb)" />
				</view>
			</view>
		</view>
	</Theme>
</template>
<script lang="ts">
import util from '@/utils/util'
import {page} from '@/mixins'
export default {
	mixins: [page],
	data() {
		return {
			meta:{title:'商户简介'},
			view: { corp_term:[],buss_term:[], certs:[]}
		}
	},
	onLoad(querys) {
		this.loadPath = 'profile/intro/' + querys.id
	},
	methods: {
		call(){
			uni.makePhoneCall({
				phoneNumber: this.view.corp_mobile, //仅为示例
				success(){
				}
			})
		}
	}
}
</script>
